
dic = {'python':95,'java':99,'c':100}
print(f'长度是:{len(dic)}')
dic['java'] = 98
print(dic)
del dic['c']
print(dic)
dic.update({'php':90})
print(dic)
print(f'获取所有的key值:{dic.keys()}')
print(f'获取所有的value值:{dic.values()}')
# 'javascript' in dic.keys()
print('javascript' in dic)
print(sum(dic.values()))
print(max(dic.values()))
print(min(dic.values()))
dic1 = {'php': 97}
dic.update(dic1)
print(dic)
dic['c'] = 100
dic['C'] = dic.pop('c')
print(dic)

